/*
 * SonarQube
 * Copyright (C) 2009-2021 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
.navbar-context,
.navbar-context .navbar-inner {
  background-color: #fff;
  z-index: var(--contextbarZIndex);
}

.navbar-context .navbar-inner {
  padding-top: var(--gridSize);
  border-bottom: 1px solid var(--barBorderColor);
}

.navbar-context .navbar-inner-with-notif {
  border-bottom: none;
}

.navbar-context-justified {
  display: flex;
  justify-content: space-between;
}

/* use `min-width: 0` to cut breadcrumb links (to end with "...") */
/* https://stackoverflow.com/questions/38223879/white-space-nowrap-breaks-flexbox-layout */
.navbar-context-header {
  display: flex;
  align-items: center;
  min-width: 0;
  height: calc(4 * var(--gridSize));
  font-size: var(--bigFontSize);
}

/* disallow icons and slash separators to shrink */
.navbar-context-header > *:not(.navbar-context-header-breadcrumb-link) {
  flex-shrink: 0;
}

.navbar-context-header-breadcrumb-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-context-header .slash-separator {
  margin-left: var(--gridSize);
  margin-right: var(--gridSize);
  font-size: 24px;
}

.navbar-context-header .slash-separator::after {
  color: rgba(68, 68, 68, 0.2);
}

/* set `min-width: 0` to allow flexbox item to shrink */
/* https://stackoverflow.com/questions/38223879/white-space-nowrap-breaks-flexbox-layout */
.navbar-context-meta {
  display: flex;
  align-items: center;
  height: calc(4 * var(--gridSize));
  padding-left: 20px;
  color: var(--secondFontColor);
  font-size: var(--smallFontSize);
  text-align: right;
}

.navbar-context-meta-secondary {
  position: absolute;
  top: 34px;
  right: 0;
  padding: 0 20px;
  white-space: nowrap;
}

.navbar-context-description {
  display: inline-block;
  line-height: var(--controlHeight);
  margin-left: var(--gridSize);
  padding-top: 4px;
  color: var(--secondFontColor);
  font-size: var(--smallFontSize);
}
